package com.business.systemmanage.service.Impl;

import com.business.systemmanage.dao.UserMapper;
import com.business.systemmanage.domain.User;
import com.business.systemmanage.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.sql.Wrapper;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    @Transactional
    public User findById(Long id) {
        User user = new User((long)3,"四狗哥",20,"sigouge@163.com");
        System.out.println(1111);
        int i = 1/0;
        userMapper.insert(user);
        return  null;
    }
}
